
package db;

import java.sql.Connection;
import java.sql.DriverManager;

public class ConnectionDB {
    public static Connection getConnection() throws Exception{
        try{
            Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
            String url = "jdbc:sqlserver://Rish\\TEManager:1433;databaseName=TEManager";
            return DriverManager.getConnection(url, "sa", "123456");
        }
        catch(Exception ex)
        {
            throw ex;
        }
    }
}
